// __PUBLIC__/js/page/cms/site/addsite
require(['../../common'], function() {
  require(['site.addsite'])
})

define('site.addsite', [
  'jquery',
  'jqp/validate'
], function($) {
  'use strict';

  var $form = $('#J_form')
  $form.validate({
    classPlace: '.kv',
    errorPlace: '.kv-error',
    errors: {
      'name': {
        required: '站点名称不能为空'
      },
      'dirname': {
        required: '站点目录不能为空'
      }
    }
  })
})
